<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
		'id' => 'horizontalForm',
        'type' => 'horizontal',
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

		<?php echo $form->dropDownListRow($model, 'assignment_volunteer_id',CHtml::listData(
		volunteer::model()->findAll(), 'volunteer_id', 'volunteer'), array('prompt'=>'Select Volunteer..' )); ?>
	
		<?php echo $form->dropDownListRow($model, 'assignment_mission_id',CHtml::listData(
		mission::model()->findAll(), 'mission_id', 'mission_name'), array('prompt'=>'Select mission..' )); ?>

		<?php echo $form->dropDownListRow($model,'assignment_length',array('prompt'=>'Select mission length..','6mos'=>'6 months','1yr'=>'1 year'))?>
			
		<?php echo $form->datepickerRow($model,'assignment_start_date',array('prepend' => '<i class="icon-calendar"></i>','options'=> array('format'=>'yyyy/mm/dd'))); ?>

		<?php echo $form->datepickerRow($model,'assignment_end_date',array('prepend' => '<i class="icon-calendar"></i>','options'=> array('format'=>'yyyy/mm/dd'))); ?>

		<?php echo $form->dropDownListRow($model,'assignment_status',array('prompt'=>'Select status..','ongoing'=>'Ongoing','done'=>'Done'))?>

		<?php echo $form->textFieldRow($model,'assignment_hours_rendered',array('append'=>'Hrs')); ?>

	<div class="row">
		 <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'type'=>'primary','label'=>'save')); ?>
		 <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'reset', 'label'=>'cancel')); ?>
    </div>

<?php $this->endWidget(); ?>